package com.graduation.roombooking.service;

import com.graduation.roombooking.vo.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService{
    /**
     * 根据cookie获取用户
     * @param ticket
     * @param request
     * @param response
     * @return
     */
    UserVo getUserByCookie(String ticket, HttpServletRequest request, HttpServletResponse response);

    /**
     * 登录
     * @param loginVo
     * @param request
     * @param response
     * @return
     */
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    /**
     * 发送邮件验证码
     * @param email
     * @return
     */
    RespBean sendEmail(String email);

    /**
     * 测试一下接口
     * @return
     */
    RespBean test();

    //web获取部门用户
    RespBean getListByCompanyName(String companyName);

    //web联合查询部门用户
    RespBean sysUnionQuery(UnionQueryUserVo unionQueryUserVo);

    //修改成员信息
    RespBean updateUserInfo(UpdatePersonalInfo updatePersonalInfo);

    RespBean updateUserInfo(UpdatePersonalInfo updatePersonalInfo,String companyName);

    //注销用户
    RespBean cancelUser(Long phone, Boolean status, String companyName);

    //添加用户
    RespBean registerUser(RegisterUserVo registerUserVo);

    //部门模糊查询
    RespBean orgUnionQuery(UnionQueryUserVo unionQueryUserVo);

    //applet——普通用户注册
    RespBean register(RegisterVo registerVo);
}
